package za.org.jcicada.deviceproxy.impl;


/**
 * Enumeration for legal modes for mode sensor
 */
public enum ConnectionEnum {
    DISCONNECTED, CONNECTED;

    /**
     * Convert the enum to an array of strings
     * 
     * @return array of enum value names.
     */
    public static String[] stringArray() {
        // TODO Should actually figure out how to write a TypeDiscrete
        // constructor which takes an enum and does this for you!
        String[] array = new String[ConnectionEnum.values().length];
        for (ConnectionEnum state : ConnectionEnum.values()) {
            array[state.ordinal()] = state.toString();
        }
        return array;
    }
}